<template>
  <view>
    <u-cell-group>
      <u-cell v-for="item in nub" :title="title+'0'+(item-0+1)+'号'" isLink @click="goToFloat(item)"></u-cell>
    </u-cell-group>
  </view>
</template>

<script>
  export default {
    data() {
      return {
        title: '',
        nub: Math.floor(Math.random() * 30)
      }
    },
    onLoad(option) {
      this.title = option.title
    },
    methods: {
      goToFloat(item) {
        const title = this.title + '0' + (item - 0 + 1) + '号'
        console.log(title)
        uni.navigateTo({
          url: `/pkg-house/house-message/house-message?title=${title}`
        })
      }
    }
  }
</script>

<style>

</style>
